<?php
	/**
	 * The abstract TableJpAddressGen class defined here is
	 * code-generated and contains all the basic CRUD-type functionality as well as
	 * basic methods to handle relationships and index-based loading.
	 *
	 * To use, you should use the TableJpAddress subclass which
	 * extends this TableJpAddressGen class.
	 *
	 * Because subsequent re-code generations will overwrite any changes to this
	 * file, you should leave this file unaltered to prevent yourself from losing
	 * any information or code changes.  All customizations should be done by
	 * overriding existing or implementing new methods, properties and variables
	 * in the TableJpAddress class.
	 * 
	 * @package My Application
	 * @subpackage GeneratedDataObjects
	 * @property-read integer $Id the value for intId (Read-Only PK)
	 * @property string $TihouCode the value for strTihouCode (Not Null)
	 * @property string $PostalCode the value for strPostalCode (Not Null)
	 * @property string $KenKana the value for strKenKana 
	 * @property string $CityKana the value for strCityKana 
	 * @property string $TiikiKana the value for strTiikiKana 
	 * @property string $Ken the value for strKen (Not Null)
	 * @property string $Shityouson the value for strShityouson (Not Null)
	 * @property string $Tiiki the value for strTiiki (Not Null)
	 * @property integer $FlagMultiCode the value for intFlagMultiCode 
	 * @property integer $FlagBantiTiiki the value for intFlagBantiTiiki 
	 * @property integer $FlagTyome the value for intFlagTyome 
	 * @property integer $FlagMultiTiiki the value for intFlagMultiTiiki 
	 * @property integer $FlagUpdate the value for intFlagUpdate 
	 * @property integer $FlagUpdateReason the value for intFlagUpdateReason 
	 * @property string $KenKana1 the value for strKenKana1 
	 * @property string $CityKana1 the value for strCityKana1 
	 * @property string $TiikiKana1 the value for strTiikiKana1 
	 * @property string $KenAlpha the value for strKenAlpha 
	 * @property string $CityAlpha the value for strCityAlpha 
	 * @property string $TiikiAlpha the value for strTiikiAlpha 
	 * @property integer $GeoOrderKen the value for intGeoOrderKen 
	 * @property integer $KanaOrderKen the value for intKanaOrderKen 
	 * @property integer $KanaOrderCity the value for intKanaOrderCity 
	 * @property integer $KanaOrderTiiki the value for intKanaOrderTiiki 
	 * @property-read boolean $__Restored whether or not this object was restored from the database (as opposed to created new)
	 */
	class TableJpAddressGen extends QBaseClass {

		///////////////////////////////////////////////////////////////////////
		// PROTECTED MEMBER VARIABLES and TEXT FIELD MAXLENGTHS (if applicable)
		///////////////////////////////////////////////////////////////////////
		
		/**
		 * Protected member variable that maps to the database PK Identity column table_jp_address.id
		 * @var integer intId
		 */
		protected $intId;
		const IdDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_jp_address.tihou_code
		 * @var string strTihouCode
		 */
		protected $strTihouCode;
		const TihouCodeMaxLength = 10;
		const TihouCodeDefault = null;


		/**
		 * Protected member variable that maps to the database column table_jp_address.postal_code
		 * @var string strPostalCode
		 */
		protected $strPostalCode;
		const PostalCodeMaxLength = 7;
		const PostalCodeDefault = null;


		/**
		 * Protected member variable that maps to the database column table_jp_address.ken_kana
		 * @var string strKenKana
		 */
		protected $strKenKana;
		const KenKanaMaxLength = 50;
		const KenKanaDefault = null;


		/**
		 * Protected member variable that maps to the database column table_jp_address.city_kana
		 * @var string strCityKana
		 */
		protected $strCityKana;
		const CityKanaMaxLength = 200;
		const CityKanaDefault = null;


		/**
		 * Protected member variable that maps to the database column table_jp_address.tiiki_kana
		 * @var string strTiikiKana
		 */
		protected $strTiikiKana;
		const TiikiKanaMaxLength = 200;
		const TiikiKanaDefault = null;


		/**
		 * Protected member variable that maps to the database column table_jp_address.ken
		 * @var string strKen
		 */
		protected $strKen;
		const KenMaxLength = 50;
		const KenDefault = null;


		/**
		 * Protected member variable that maps to the database column table_jp_address.shityouson
		 * @var string strShityouson
		 */
		protected $strShityouson;
		const ShityousonMaxLength = 50;
		const ShityousonDefault = null;


		/**
		 * Protected member variable that maps to the database column table_jp_address.tiiki
		 * @var string strTiiki
		 */
		protected $strTiiki;
		const TiikiMaxLength = 50;
		const TiikiDefault = null;


		/**
		 * Protected member variable that maps to the database column table_jp_address.flag_multi_code
		 * @var integer intFlagMultiCode
		 */
		protected $intFlagMultiCode;
		const FlagMultiCodeDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_jp_address.flag_banti_tiiki
		 * @var integer intFlagBantiTiiki
		 */
		protected $intFlagBantiTiiki;
		const FlagBantiTiikiDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_jp_address.flag_tyome
		 * @var integer intFlagTyome
		 */
		protected $intFlagTyome;
		const FlagTyomeDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_jp_address.flag_multi_tiiki
		 * @var integer intFlagMultiTiiki
		 */
		protected $intFlagMultiTiiki;
		const FlagMultiTiikiDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_jp_address.flag_update
		 * @var integer intFlagUpdate
		 */
		protected $intFlagUpdate;
		const FlagUpdateDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_jp_address.flag_update_reason
		 * @var integer intFlagUpdateReason
		 */
		protected $intFlagUpdateReason;
		const FlagUpdateReasonDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_jp_address.ken_kana1
		 * @var string strKenKana1
		 */
		protected $strKenKana1;
		const KenKana1MaxLength = 2;
		const KenKana1Default = null;


		/**
		 * Protected member variable that maps to the database column table_jp_address.city_kana1
		 * @var string strCityKana1
		 */
		protected $strCityKana1;
		const CityKana1MaxLength = 2;
		const CityKana1Default = null;


		/**
		 * Protected member variable that maps to the database column table_jp_address.tiiki_kana1
		 * @var string strTiikiKana1
		 */
		protected $strTiikiKana1;
		const TiikiKana1MaxLength = 2;
		const TiikiKana1Default = null;


		/**
		 * Protected member variable that maps to the database column table_jp_address.ken_alpha
		 * @var string strKenAlpha
		 */
		protected $strKenAlpha;
		const KenAlphaMaxLength = 50;
		const KenAlphaDefault = null;


		/**
		 * Protected member variable that maps to the database column table_jp_address.city_alpha
		 * @var string strCityAlpha
		 */
		protected $strCityAlpha;
		const CityAlphaMaxLength = 100;
		const CityAlphaDefault = null;


		/**
		 * Protected member variable that maps to the database column table_jp_address.tiiki_alpha
		 * @var string strTiikiAlpha
		 */
		protected $strTiikiAlpha;
		const TiikiAlphaMaxLength = 100;
		const TiikiAlphaDefault = null;


		/**
		 * Protected member variable that maps to the database column table_jp_address.geo_order_ken
		 * @var integer intGeoOrderKen
		 */
		protected $intGeoOrderKen;
		const GeoOrderKenDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_jp_address.kana_order_ken
		 * @var integer intKanaOrderKen
		 */
		protected $intKanaOrderKen;
		const KanaOrderKenDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_jp_address.kana_order_city
		 * @var integer intKanaOrderCity
		 */
		protected $intKanaOrderCity;
		const KanaOrderCityDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_jp_address.kana_order_tiiki
		 * @var integer intKanaOrderTiiki
		 */
		protected $intKanaOrderTiiki;
		const KanaOrderTiikiDefault = 0;


		/**
		 * Protected array of virtual attributes for this object (e.g. extra/other calculated and/or non-object bound
		 * columns from the run-time database query result for this object).  Used by InstantiateDbRow and
		 * GetVirtualAttribute.
		 * @var string[] $__strVirtualAttributeArray
		 */
		protected $__strVirtualAttributeArray = array();

		/**
		 * Protected internal member variable that specifies whether or not this object is Restored from the database.
		 * Used by Save() to determine if Save() should perform a db UPDATE or INSERT.
		 * @var bool __blnRestored;
		 */
		protected $__blnRestored;




		///////////////////////////////
		// PROTECTED MEMBER OBJECTS
		///////////////////////////////





		///////////////////////////////
		// CLASS-WIDE LOAD AND COUNT METHODS
		///////////////////////////////

		/**
		 * Static method to retrieve the Database object that owns this class.
		 * @return QDatabaseBase reference to the Database object that can query this class
		 */
		public static function GetDatabase() {
			return QApplication::$Database[1];
		}

		/**
		 * Load a TableJpAddress from PK Info
		 * @param integer $intId
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress
		 */
		public static function Load($intId, $objOptionalClauses = null) {
			// Use QuerySingle to Perform the Query
			return TableJpAddress::QuerySingle(
				QQ::AndCondition(
					QQ::Equal(QQN::TableJpAddress()->Id, $intId)
				),
				$objOptionalClauses
			);
		}

		/**
		 * Load all TableJpAddresses
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		 */
		public static function LoadAll($objOptionalClauses = null) {
			if (func_num_args() > 1) {
				throw new QCallerException("LoadAll must be called with an array of optional clauses as a single argument");
			}
			// Call TableJpAddress::QueryArray to perform the LoadAll query
			try {
				return TableJpAddress::QueryArray(QQ::All(), $objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count all TableJpAddresses
		 * @return int
		 */
		public static function CountAll() {
			// Call TableJpAddress::QueryCount to perform the CountAll query
			return TableJpAddress::QueryCount(QQ::All());
		}




		///////////////////////////////
		// QCUBED QUERY-RELATED METHODS
		///////////////////////////////

		/**
		 * Internally called method to assist with calling Qcubed Query for this class
		 * on load methods.
		 * @param QQueryBuilder &$objQueryBuilder the QueryBuilder object that will be created
		 * @param QQCondition $objConditions any conditions on the query, itself
		 * @param QQClause[] $objOptionalClausees additional optional QQClause object or array of QQClause objects for this query
		 * @param mixed[] $mixParameterArray a array of name-value pairs to perform PrepareStatement with (sending in null will skip the PrepareStatement step)
		 * @param boolean $blnCountOnly only select a rowcount
		 * @return string the query statement
		 */
		protected static function BuildQueryStatement(&$objQueryBuilder, QQCondition $objConditions, $objOptionalClauses, $mixParameterArray, $blnCountOnly) {
			// Get the Database Object for this Class
			$objDatabase = TableJpAddress::GetDatabase();

			// Create/Build out the QueryBuilder object with TableJpAddress-specific SELET and FROM fields
			$objQueryBuilder = new QQueryBuilder($objDatabase, 'table_jp_address');
			TableJpAddress::GetSelectFields($objQueryBuilder);
			$objQueryBuilder->AddFromItem('table_jp_address');

			// Set "CountOnly" option (if applicable)
			if ($blnCountOnly)
				$objQueryBuilder->SetCountOnlyFlag();

			// Apply Any Conditions
			if ($objConditions)
				try {
					$objConditions->UpdateQueryBuilder($objQueryBuilder);
				} catch (QCallerException $objExc) {
					$objExc->IncrementOffset();
					throw $objExc;
				}

			// Iterate through all the Optional Clauses (if any) and perform accordingly
			if ($objOptionalClauses) {
				if ($objOptionalClauses instanceof QQClause)
					$objOptionalClauses->UpdateQueryBuilder($objQueryBuilder);
				else if (is_array($objOptionalClauses))
					foreach ($objOptionalClauses as $objClause)
						$objClause->UpdateQueryBuilder($objQueryBuilder);
				else
					throw new QCallerException('Optional Clauses must be a QQClause object or an array of QQClause objects');
			}

			// Get the SQL Statement
			$strQuery = $objQueryBuilder->GetStatement();

			// Prepare the Statement with the Query Parameters (if applicable)
			if ($mixParameterArray) {
				if (is_array($mixParameterArray)) {
					if (count($mixParameterArray))
						$strQuery = $objDatabase->PrepareStatement($strQuery, $mixParameterArray);

					// Ensure that there are no other Unresolved Named Parameters
					if (strpos($strQuery, chr(QQNamedValue::DelimiterCode) . '{') !== false)
						throw new QCallerException('Unresolved named parameters in the query');
				} else
					throw new QCallerException('Parameter Array must be an array of name-value parameter pairs');
			}

			// Return the Objects
			return $strQuery;
		}

		/**
		 * Static Qcubed Query method to query for a single TableJpAddress object.
		 * Uses BuildQueryStatment to perform most of the work.
		 * @param QQCondition $objConditions any conditions on the query, itself
		 * @param QQClause[] $objOptionalClausees additional optional QQClause objects for this query
		 * @param mixed[] $mixParameterArray a array of name-value pairs to perform PrepareStatement with
		 * @return TableJpAddress the queried object
		 */
		public static function QuerySingle(QQCondition $objConditions, $objOptionalClauses = null, $mixParameterArray = null) {
			// Get the Query Statement
			try {
				$strQuery = TableJpAddress::BuildQueryStatement($objQueryBuilder, $objConditions, $objOptionalClauses, $mixParameterArray, false);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
			
			// Perform the Query, Get the First Row, and Instantiate a new TableJpAddress object
			$objDbResult = $objQueryBuilder->Database->Query($strQuery);
			
			// Do we have to expand anything?
			if ($objQueryBuilder->ExpandAsArrayNodes) {
				$objToReturn = array();
				while ($objDbRow = $objDbResult->GetNextRow()) {
					$objItem = TableJpAddress::InstantiateDbRow($objDbRow, null, $objQueryBuilder->ExpandAsArrayNodes, $objToReturn, $objQueryBuilder->ColumnAliasArray);
					if ($objItem)
						$objToReturn[] = $objItem;					
				}			
				// Since we only want the object to return, lets return the object and not the array.
				return $objToReturn[0];
			} else {
				// No expands just return the first row
				$objToReturn = null;
				while ($objDbRow = $objDbResult->GetNextRow())
					$objToReturn = TableJpAddress::InstantiateDbRow($objDbRow, null, null, null, $objQueryBuilder->ColumnAliasArray);
			}
			
			return $objToReturn;
		}

		/**
		 * Static Qcubed Query method to query for an array of TableJpAddress objects.
		 * Uses BuildQueryStatment to perform most of the work.
		 * @param QQCondition $objConditions any conditions on the query, itself
		 * @param QQClause[] $objOptionalClausees additional optional QQClause objects for this query
		 * @param mixed[] $mixParameterArray a array of name-value pairs to perform PrepareStatement with
		 * @return TableJpAddress[] the queried objects as an array
		 */
		public static function QueryArray(QQCondition $objConditions, $objOptionalClauses = null, $mixParameterArray = null) {
			// Get the Query Statement
			try {
				$strQuery = TableJpAddress::BuildQueryStatement($objQueryBuilder, $objConditions, $objOptionalClauses, $mixParameterArray, false);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}

			// Perform the Query and Instantiate the Array Result
			$objDbResult = $objQueryBuilder->Database->Query($strQuery);
			return TableJpAddress::InstantiateDbResult($objDbResult, $objQueryBuilder->ExpandAsArrayNodes, $objQueryBuilder->ColumnAliasArray);
		}

		/**
		 * Static Qcubed Query method to query for a count of TableJpAddress objects.
		 * Uses BuildQueryStatment to perform most of the work.
		 * @param QQCondition $objConditions any conditions on the query, itself
		 * @param QQClause[] $objOptionalClausees additional optional QQClause objects for this query
		 * @param mixed[] $mixParameterArray a array of name-value pairs to perform PrepareStatement with
		 * @return integer the count of queried objects as an integer
		 */
		public static function QueryCount(QQCondition $objConditions, $objOptionalClauses = null, $mixParameterArray = null) {
			// Get the Query Statement
			try {
				$strQuery = TableJpAddress::BuildQueryStatement($objQueryBuilder, $objConditions, $objOptionalClauses, $mixParameterArray, true);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}

			// Perform the Query and return the row_count
			$objDbResult = $objQueryBuilder->Database->Query($strQuery);

			// Figure out if the query is using GroupBy
			$blnGrouped = false;

			if ($objOptionalClauses) foreach ($objOptionalClauses as $objClause) {
				if ($objClause instanceof QQGroupBy) {
					$blnGrouped = true;
					break;
				}
			}

			if ($blnGrouped)
				// Groups in this query - return the count of Groups (which is the count of all rows)
				return $objDbResult->CountRows();
			else {
				// No Groups - return the sql-calculated count(*) value
				$strDbRow = $objDbResult->FetchRow();
				return QType::Cast($strDbRow[0], QType::Integer);
			}
		}

		public static function QueryArrayCached(QQCondition $objConditions, $objOptionalClauses = null, $mixParameterArray = null, $blnForceUpdate = false) {
			// Get the Database Object for this Class
			$objDatabase = TableJpAddress::GetDatabase();

			$strQuery = TableJpAddress::BuildQueryStatement($objQueryBuilder, $objConditions, $objOptionalClauses, $mixParameterArray, false);
			
			$objCache = new QCache('qquery/tablejpaddress', $strQuery);
			$cacheData = $objCache->GetData();
			
			if (!$cacheData || $blnForceUpdate) {
				$objDbResult = $objQueryBuilder->Database->Query($strQuery);
				$arrResult = TableJpAddress::InstantiateDbResult($objDbResult, $objQueryBuilder->ExpandAsArrayNodes, $objQueryBuilder->ColumnAliasArray);
				$objCache->SaveData(serialize($arrResult));
			} else {
				$arrResult = unserialize($cacheData);
			}
			
			return $arrResult;
		}

		/**
		 * Updates a QQueryBuilder with the SELECT fields for this TableJpAddress
		 * @param QQueryBuilder $objBuilder the Query Builder object to update
		 * @param string $strPrefix optional prefix to add to the SELECT fields
		 */
		public static function GetSelectFields(QQueryBuilder $objBuilder, $strPrefix = null) {
			if ($strPrefix) {
				$strTableName = $strPrefix;
				$strAliasPrefix = $strPrefix . '__';
			} else {
				$strTableName = 'table_jp_address';
				$strAliasPrefix = '';
			}

			$objBuilder->AddSelectItem($strTableName, 'id', $strAliasPrefix . 'id');
			$objBuilder->AddSelectItem($strTableName, 'tihou_code', $strAliasPrefix . 'tihou_code');
			$objBuilder->AddSelectItem($strTableName, 'postal_code', $strAliasPrefix . 'postal_code');
			$objBuilder->AddSelectItem($strTableName, 'ken_kana', $strAliasPrefix . 'ken_kana');
			$objBuilder->AddSelectItem($strTableName, 'city_kana', $strAliasPrefix . 'city_kana');
			$objBuilder->AddSelectItem($strTableName, 'tiiki_kana', $strAliasPrefix . 'tiiki_kana');
			$objBuilder->AddSelectItem($strTableName, 'ken', $strAliasPrefix . 'ken');
			$objBuilder->AddSelectItem($strTableName, 'shityouson', $strAliasPrefix . 'shityouson');
			$objBuilder->AddSelectItem($strTableName, 'tiiki', $strAliasPrefix . 'tiiki');
			$objBuilder->AddSelectItem($strTableName, 'flag_multi_code', $strAliasPrefix . 'flag_multi_code');
			$objBuilder->AddSelectItem($strTableName, 'flag_banti_tiiki', $strAliasPrefix . 'flag_banti_tiiki');
			$objBuilder->AddSelectItem($strTableName, 'flag_tyome', $strAliasPrefix . 'flag_tyome');
			$objBuilder->AddSelectItem($strTableName, 'flag_multi_tiiki', $strAliasPrefix . 'flag_multi_tiiki');
			$objBuilder->AddSelectItem($strTableName, 'flag_update', $strAliasPrefix . 'flag_update');
			$objBuilder->AddSelectItem($strTableName, 'flag_update_reason', $strAliasPrefix . 'flag_update_reason');
			$objBuilder->AddSelectItem($strTableName, 'ken_kana1', $strAliasPrefix . 'ken_kana1');
			$objBuilder->AddSelectItem($strTableName, 'city_kana1', $strAliasPrefix . 'city_kana1');
			$objBuilder->AddSelectItem($strTableName, 'tiiki_kana1', $strAliasPrefix . 'tiiki_kana1');
			$objBuilder->AddSelectItem($strTableName, 'ken_alpha', $strAliasPrefix . 'ken_alpha');
			$objBuilder->AddSelectItem($strTableName, 'city_alpha', $strAliasPrefix . 'city_alpha');
			$objBuilder->AddSelectItem($strTableName, 'tiiki_alpha', $strAliasPrefix . 'tiiki_alpha');
			$objBuilder->AddSelectItem($strTableName, 'geo_order_ken', $strAliasPrefix . 'geo_order_ken');
			$objBuilder->AddSelectItem($strTableName, 'kana_order_ken', $strAliasPrefix . 'kana_order_ken');
			$objBuilder->AddSelectItem($strTableName, 'kana_order_city', $strAliasPrefix . 'kana_order_city');
			$objBuilder->AddSelectItem($strTableName, 'kana_order_tiiki', $strAliasPrefix . 'kana_order_tiiki');
		}



		///////////////////////////////
		// INSTANTIATION-RELATED METHODS
		///////////////////////////////

		/**
		 * Instantiate a TableJpAddress from a Database Row.
		 * Takes in an optional strAliasPrefix, used in case another Object::InstantiateDbRow
		 * is calling this TableJpAddress::InstantiateDbRow in order to perform
		 * early binding on referenced objects.
		 * @param DatabaseRowBase $objDbRow
		 * @param string $strAliasPrefix
		 * @param string $strExpandAsArrayNodes
		 * @param QBaseClass $arrPreviousItem
		 * @param string[] $strColumnAliasArray
		 * @return TableJpAddress
		*/
		public static function InstantiateDbRow($objDbRow, $strAliasPrefix = null, $strExpandAsArrayNodes = null, $arrPreviousItems = null, $strColumnAliasArray = array()) {
			// If blank row, return null
			if (!$objDbRow) {
				return null;
			}

			// Create a new instance of the TableJpAddress object
			$objToReturn = new TableJpAddress();
			$objToReturn->__blnRestored = true;

			$strAliasName = array_key_exists($strAliasPrefix . 'id', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'id'] : $strAliasPrefix . 'id';
			$objToReturn->intId = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'tihou_code', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'tihou_code'] : $strAliasPrefix . 'tihou_code';
			$objToReturn->strTihouCode = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'postal_code', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'postal_code'] : $strAliasPrefix . 'postal_code';
			$objToReturn->strPostalCode = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'ken_kana', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'ken_kana'] : $strAliasPrefix . 'ken_kana';
			$objToReturn->strKenKana = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'city_kana', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'city_kana'] : $strAliasPrefix . 'city_kana';
			$objToReturn->strCityKana = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'tiiki_kana', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'tiiki_kana'] : $strAliasPrefix . 'tiiki_kana';
			$objToReturn->strTiikiKana = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'ken', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'ken'] : $strAliasPrefix . 'ken';
			$objToReturn->strKen = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'shityouson', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'shityouson'] : $strAliasPrefix . 'shityouson';
			$objToReturn->strShityouson = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'tiiki', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'tiiki'] : $strAliasPrefix . 'tiiki';
			$objToReturn->strTiiki = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'flag_multi_code', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'flag_multi_code'] : $strAliasPrefix . 'flag_multi_code';
			$objToReturn->intFlagMultiCode = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'flag_banti_tiiki', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'flag_banti_tiiki'] : $strAliasPrefix . 'flag_banti_tiiki';
			$objToReturn->intFlagBantiTiiki = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'flag_tyome', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'flag_tyome'] : $strAliasPrefix . 'flag_tyome';
			$objToReturn->intFlagTyome = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'flag_multi_tiiki', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'flag_multi_tiiki'] : $strAliasPrefix . 'flag_multi_tiiki';
			$objToReturn->intFlagMultiTiiki = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'flag_update', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'flag_update'] : $strAliasPrefix . 'flag_update';
			$objToReturn->intFlagUpdate = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'flag_update_reason', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'flag_update_reason'] : $strAliasPrefix . 'flag_update_reason';
			$objToReturn->intFlagUpdateReason = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'ken_kana1', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'ken_kana1'] : $strAliasPrefix . 'ken_kana1';
			$objToReturn->strKenKana1 = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'city_kana1', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'city_kana1'] : $strAliasPrefix . 'city_kana1';
			$objToReturn->strCityKana1 = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'tiiki_kana1', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'tiiki_kana1'] : $strAliasPrefix . 'tiiki_kana1';
			$objToReturn->strTiikiKana1 = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'ken_alpha', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'ken_alpha'] : $strAliasPrefix . 'ken_alpha';
			$objToReturn->strKenAlpha = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'city_alpha', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'city_alpha'] : $strAliasPrefix . 'city_alpha';
			$objToReturn->strCityAlpha = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'tiiki_alpha', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'tiiki_alpha'] : $strAliasPrefix . 'tiiki_alpha';
			$objToReturn->strTiikiAlpha = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'geo_order_ken', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'geo_order_ken'] : $strAliasPrefix . 'geo_order_ken';
			$objToReturn->intGeoOrderKen = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'kana_order_ken', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'kana_order_ken'] : $strAliasPrefix . 'kana_order_ken';
			$objToReturn->intKanaOrderKen = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'kana_order_city', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'kana_order_city'] : $strAliasPrefix . 'kana_order_city';
			$objToReturn->intKanaOrderCity = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'kana_order_tiiki', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'kana_order_tiiki'] : $strAliasPrefix . 'kana_order_tiiki';
			$objToReturn->intKanaOrderTiiki = $objDbRow->GetColumn($strAliasName, 'Integer');

			if (isset($arrPreviousItems) && is_array($arrPreviousItems)) {
				foreach ($arrPreviousItems as $objPreviousItem) {
					if ($objToReturn->Id != $objPreviousItem->Id) {
						continue;
					}

					// complete match - all primary key columns are the same
					return null;
				}
			}

			// Instantiate Virtual Attributes
			foreach ($objDbRow->GetColumnNameArray() as $strColumnName => $mixValue) {
				$strVirtualPrefix = $strAliasPrefix . '__';
				$strVirtualPrefixLength = strlen($strVirtualPrefix);
				if (substr($strColumnName, 0, $strVirtualPrefixLength) == $strVirtualPrefix)
					$objToReturn->__strVirtualAttributeArray[substr($strColumnName, $strVirtualPrefixLength)] = $mixValue;
			}

			// Prepare to Check for Early/Virtual Binding
			if (!$strAliasPrefix)
				$strAliasPrefix = 'table_jp_address__';




			return $objToReturn;
		}

		/**
		 * Instantiate an array of TableJpAddresses from a Database Result
		 * @param DatabaseResultBase $objDbResult
		 * @param string $strExpandAsArrayNodes
		 * @param string[] $strColumnAliasArray
		 * @return TableJpAddress[]
		 */
		public static function InstantiateDbResult(QDatabaseResultBase $objDbResult, $strExpandAsArrayNodes = null, $strColumnAliasArray = null) {
			$objToReturn = array();
			
			if (!$strColumnAliasArray)
				$strColumnAliasArray = array();

			// If blank resultset, then return empty array
			if (!$objDbResult)
				return $objToReturn;

			// Load up the return array with each row
			if ($strExpandAsArrayNodes) {
				$objToReturn = array();
				while ($objDbRow = $objDbResult->GetNextRow()) {
					$objItem = TableJpAddress::InstantiateDbRow($objDbRow, null, $strExpandAsArrayNodes, $objToReturn, $strColumnAliasArray);
					if ($objItem) {
						$objToReturn[] = $objItem;
					}
				}
			} else {
				while ($objDbRow = $objDbResult->GetNextRow())
					$objToReturn[] = TableJpAddress::InstantiateDbRow($objDbRow, null, null, null, $strColumnAliasArray);
			}

			return $objToReturn;
		}



		///////////////////////////////////////////////////
		// INDEX-BASED LOAD METHODS (Single Load and Array)
		///////////////////////////////////////////////////
			
		/**
		 * Load a single TableJpAddress object,
		 * by Id Index(es)
		 * @param integer $intId
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress
		*/
		public static function LoadById($intId, $objOptionalClauses = null) {
			return TableJpAddress::QuerySingle(
				QQ::AndCondition(
					QQ::Equal(QQN::TableJpAddress()->Id, $intId)
				),
				$objOptionalClauses
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by TihouCode Index(es)
		 * @param string $strTihouCode
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByTihouCode($strTihouCode, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByTihouCode query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->TihouCode, $strTihouCode),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by TihouCode Index(es)
		 * @param string $strTihouCode
		 * @return int
		*/
		public static function CountByTihouCode($strTihouCode) {
			// Call TableJpAddress::QueryCount to perform the CountByTihouCode query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->TihouCode, $strTihouCode)
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by PostalCode Index(es)
		 * @param string $strPostalCode
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByPostalCode($strPostalCode, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByPostalCode query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->PostalCode, $strPostalCode),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by PostalCode Index(es)
		 * @param string $strPostalCode
		 * @return int
		*/
		public static function CountByPostalCode($strPostalCode) {
			// Call TableJpAddress::QueryCount to perform the CountByPostalCode query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->PostalCode, $strPostalCode)
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by KenKana Index(es)
		 * @param string $strKenKana
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByKenKana($strKenKana, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByKenKana query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->KenKana, $strKenKana),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by KenKana Index(es)
		 * @param string $strKenKana
		 * @return int
		*/
		public static function CountByKenKana($strKenKana) {
			// Call TableJpAddress::QueryCount to perform the CountByKenKana query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->KenKana, $strKenKana)
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by TiikiKana Index(es)
		 * @param string $strTiikiKana
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByTiikiKana($strTiikiKana, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByTiikiKana query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->TiikiKana, $strTiikiKana),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by TiikiKana Index(es)
		 * @param string $strTiikiKana
		 * @return int
		*/
		public static function CountByTiikiKana($strTiikiKana) {
			// Call TableJpAddress::QueryCount to perform the CountByTiikiKana query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->TiikiKana, $strTiikiKana)
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by Ken Index(es)
		 * @param string $strKen
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByKen($strKen, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByKen query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->Ken, $strKen),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by Ken Index(es)
		 * @param string $strKen
		 * @return int
		*/
		public static function CountByKen($strKen) {
			// Call TableJpAddress::QueryCount to perform the CountByKen query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->Ken, $strKen)
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by Shityouson Index(es)
		 * @param string $strShityouson
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByShityouson($strShityouson, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByShityouson query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->Shityouson, $strShityouson),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by Shityouson Index(es)
		 * @param string $strShityouson
		 * @return int
		*/
		public static function CountByShityouson($strShityouson) {
			// Call TableJpAddress::QueryCount to perform the CountByShityouson query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->Shityouson, $strShityouson)
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by Tiiki Index(es)
		 * @param string $strTiiki
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByTiiki($strTiiki, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByTiiki query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->Tiiki, $strTiiki),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by Tiiki Index(es)
		 * @param string $strTiiki
		 * @return int
		*/
		public static function CountByTiiki($strTiiki) {
			// Call TableJpAddress::QueryCount to perform the CountByTiiki query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->Tiiki, $strTiiki)
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by FlagMultiCode Index(es)
		 * @param integer $intFlagMultiCode
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByFlagMultiCode($intFlagMultiCode, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByFlagMultiCode query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->FlagMultiCode, $intFlagMultiCode),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by FlagMultiCode Index(es)
		 * @param integer $intFlagMultiCode
		 * @return int
		*/
		public static function CountByFlagMultiCode($intFlagMultiCode) {
			// Call TableJpAddress::QueryCount to perform the CountByFlagMultiCode query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->FlagMultiCode, $intFlagMultiCode)
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by FlagBantiTiiki Index(es)
		 * @param integer $intFlagBantiTiiki
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByFlagBantiTiiki($intFlagBantiTiiki, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByFlagBantiTiiki query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->FlagBantiTiiki, $intFlagBantiTiiki),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by FlagBantiTiiki Index(es)
		 * @param integer $intFlagBantiTiiki
		 * @return int
		*/
		public static function CountByFlagBantiTiiki($intFlagBantiTiiki) {
			// Call TableJpAddress::QueryCount to perform the CountByFlagBantiTiiki query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->FlagBantiTiiki, $intFlagBantiTiiki)
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by FlagTyome Index(es)
		 * @param integer $intFlagTyome
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByFlagTyome($intFlagTyome, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByFlagTyome query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->FlagTyome, $intFlagTyome),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by FlagTyome Index(es)
		 * @param integer $intFlagTyome
		 * @return int
		*/
		public static function CountByFlagTyome($intFlagTyome) {
			// Call TableJpAddress::QueryCount to perform the CountByFlagTyome query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->FlagTyome, $intFlagTyome)
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by FlagMultiTiiki Index(es)
		 * @param integer $intFlagMultiTiiki
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByFlagMultiTiiki($intFlagMultiTiiki, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByFlagMultiTiiki query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->FlagMultiTiiki, $intFlagMultiTiiki),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by FlagMultiTiiki Index(es)
		 * @param integer $intFlagMultiTiiki
		 * @return int
		*/
		public static function CountByFlagMultiTiiki($intFlagMultiTiiki) {
			// Call TableJpAddress::QueryCount to perform the CountByFlagMultiTiiki query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->FlagMultiTiiki, $intFlagMultiTiiki)
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by FlagUpdate Index(es)
		 * @param integer $intFlagUpdate
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByFlagUpdate($intFlagUpdate, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByFlagUpdate query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->FlagUpdate, $intFlagUpdate),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by FlagUpdate Index(es)
		 * @param integer $intFlagUpdate
		 * @return int
		*/
		public static function CountByFlagUpdate($intFlagUpdate) {
			// Call TableJpAddress::QueryCount to perform the CountByFlagUpdate query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->FlagUpdate, $intFlagUpdate)
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by FlagUpdateReason Index(es)
		 * @param integer $intFlagUpdateReason
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByFlagUpdateReason($intFlagUpdateReason, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByFlagUpdateReason query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->FlagUpdateReason, $intFlagUpdateReason),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by FlagUpdateReason Index(es)
		 * @param integer $intFlagUpdateReason
		 * @return int
		*/
		public static function CountByFlagUpdateReason($intFlagUpdateReason) {
			// Call TableJpAddress::QueryCount to perform the CountByFlagUpdateReason query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->FlagUpdateReason, $intFlagUpdateReason)
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by TiikiKana1 Index(es)
		 * @param string $strTiikiKana1
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByTiikiKana1($strTiikiKana1, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByTiikiKana1 query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->TiikiKana1, $strTiikiKana1),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by TiikiKana1 Index(es)
		 * @param string $strTiikiKana1
		 * @return int
		*/
		public static function CountByTiikiKana1($strTiikiKana1) {
			// Call TableJpAddress::QueryCount to perform the CountByTiikiKana1 query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->TiikiKana1, $strTiikiKana1)
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by KenKana1 Index(es)
		 * @param string $strKenKana1
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByKenKana1($strKenKana1, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByKenKana1 query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->KenKana1, $strKenKana1),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by KenKana1 Index(es)
		 * @param string $strKenKana1
		 * @return int
		*/
		public static function CountByKenKana1($strKenKana1) {
			// Call TableJpAddress::QueryCount to perform the CountByKenKana1 query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->KenKana1, $strKenKana1)
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by CityKana1 Index(es)
		 * @param string $strCityKana1
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByCityKana1($strCityKana1, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByCityKana1 query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->CityKana1, $strCityKana1),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by CityKana1 Index(es)
		 * @param string $strCityKana1
		 * @return int
		*/
		public static function CountByCityKana1($strCityKana1) {
			// Call TableJpAddress::QueryCount to perform the CountByCityKana1 query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->CityKana1, $strCityKana1)
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by CityAlpha Index(es)
		 * @param string $strCityAlpha
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByCityAlpha($strCityAlpha, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByCityAlpha query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->CityAlpha, $strCityAlpha),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by CityAlpha Index(es)
		 * @param string $strCityAlpha
		 * @return int
		*/
		public static function CountByCityAlpha($strCityAlpha) {
			// Call TableJpAddress::QueryCount to perform the CountByCityAlpha query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->CityAlpha, $strCityAlpha)
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by KenAlpha Index(es)
		 * @param string $strKenAlpha
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByKenAlpha($strKenAlpha, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByKenAlpha query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->KenAlpha, $strKenAlpha),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by KenAlpha Index(es)
		 * @param string $strKenAlpha
		 * @return int
		*/
		public static function CountByKenAlpha($strKenAlpha) {
			// Call TableJpAddress::QueryCount to perform the CountByKenAlpha query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->KenAlpha, $strKenAlpha)
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by TiikiAlpha Index(es)
		 * @param string $strTiikiAlpha
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByTiikiAlpha($strTiikiAlpha, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByTiikiAlpha query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->TiikiAlpha, $strTiikiAlpha),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by TiikiAlpha Index(es)
		 * @param string $strTiikiAlpha
		 * @return int
		*/
		public static function CountByTiikiAlpha($strTiikiAlpha) {
			// Call TableJpAddress::QueryCount to perform the CountByTiikiAlpha query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->TiikiAlpha, $strTiikiAlpha)
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by GeoOrderKen Index(es)
		 * @param integer $intGeoOrderKen
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByGeoOrderKen($intGeoOrderKen, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByGeoOrderKen query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->GeoOrderKen, $intGeoOrderKen),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by GeoOrderKen Index(es)
		 * @param integer $intGeoOrderKen
		 * @return int
		*/
		public static function CountByGeoOrderKen($intGeoOrderKen) {
			// Call TableJpAddress::QueryCount to perform the CountByGeoOrderKen query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->GeoOrderKen, $intGeoOrderKen)
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by KanaOrderKen Index(es)
		 * @param integer $intKanaOrderKen
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByKanaOrderKen($intKanaOrderKen, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByKanaOrderKen query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->KanaOrderKen, $intKanaOrderKen),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by KanaOrderKen Index(es)
		 * @param integer $intKanaOrderKen
		 * @return int
		*/
		public static function CountByKanaOrderKen($intKanaOrderKen) {
			// Call TableJpAddress::QueryCount to perform the CountByKanaOrderKen query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->KanaOrderKen, $intKanaOrderKen)
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by KanaOrderCity Index(es)
		 * @param integer $intKanaOrderCity
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByKanaOrderCity($intKanaOrderCity, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByKanaOrderCity query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->KanaOrderCity, $intKanaOrderCity),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by KanaOrderCity Index(es)
		 * @param integer $intKanaOrderCity
		 * @return int
		*/
		public static function CountByKanaOrderCity($intKanaOrderCity) {
			// Call TableJpAddress::QueryCount to perform the CountByKanaOrderCity query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->KanaOrderCity, $intKanaOrderCity)
			);
		}
			
		/**
		 * Load an array of TableJpAddress objects,
		 * by KanaOrderTiiki Index(es)
		 * @param integer $intKanaOrderTiiki
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableJpAddress[]
		*/
		public static function LoadArrayByKanaOrderTiiki($intKanaOrderTiiki, $objOptionalClauses = null) {
			// Call TableJpAddress::QueryArray to perform the LoadArrayByKanaOrderTiiki query
			try {
				return TableJpAddress::QueryArray(
					QQ::Equal(QQN::TableJpAddress()->KanaOrderTiiki, $intKanaOrderTiiki),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableJpAddresses
		 * by KanaOrderTiiki Index(es)
		 * @param integer $intKanaOrderTiiki
		 * @return int
		*/
		public static function CountByKanaOrderTiiki($intKanaOrderTiiki) {
			// Call TableJpAddress::QueryCount to perform the CountByKanaOrderTiiki query
			return TableJpAddress::QueryCount(
				QQ::Equal(QQN::TableJpAddress()->KanaOrderTiiki, $intKanaOrderTiiki)
			);
		}



		////////////////////////////////////////////////////
		// INDEX-BASED LOAD METHODS (Array via Many to Many)
		////////////////////////////////////////////////////




		//////////////////////////
		// SAVE, DELETE AND RELOAD
		//////////////////////////

		/**
		 * Save this TableJpAddress
		 * @param bool $blnForceInsert
		 * @param bool $blnForceUpdate
		 * @return int
		 */
		public function Save($blnForceInsert = false, $blnForceUpdate = false) {
			// Get the Database Object for this Class
			$objDatabase = TableJpAddress::GetDatabase();

			$mixToReturn = null;

			try {
				if ((!$this->__blnRestored) || ($blnForceInsert)) {
					// Perform an INSERT query
					$objDatabase->NonQuery('
						INSERT INTO `table_jp_address` (
							`tihou_code`,
							`postal_code`,
							`ken_kana`,
							`city_kana`,
							`tiiki_kana`,
							`ken`,
							`shityouson`,
							`tiiki`,
							`flag_multi_code`,
							`flag_banti_tiiki`,
							`flag_tyome`,
							`flag_multi_tiiki`,
							`flag_update`,
							`flag_update_reason`,
							`ken_kana1`,
							`city_kana1`,
							`tiiki_kana1`,
							`ken_alpha`,
							`city_alpha`,
							`tiiki_alpha`,
							`geo_order_ken`,
							`kana_order_ken`,
							`kana_order_city`,
							`kana_order_tiiki`
						) VALUES (
							' . $objDatabase->SqlVariable($this->strTihouCode) . ',
							' . $objDatabase->SqlVariable($this->strPostalCode) . ',
							' . $objDatabase->SqlVariable($this->strKenKana) . ',
							' . $objDatabase->SqlVariable($this->strCityKana) . ',
							' . $objDatabase->SqlVariable($this->strTiikiKana) . ',
							' . $objDatabase->SqlVariable($this->strKen) . ',
							' . $objDatabase->SqlVariable($this->strShityouson) . ',
							' . $objDatabase->SqlVariable($this->strTiiki) . ',
							' . $objDatabase->SqlVariable($this->intFlagMultiCode) . ',
							' . $objDatabase->SqlVariable($this->intFlagBantiTiiki) . ',
							' . $objDatabase->SqlVariable($this->intFlagTyome) . ',
							' . $objDatabase->SqlVariable($this->intFlagMultiTiiki) . ',
							' . $objDatabase->SqlVariable($this->intFlagUpdate) . ',
							' . $objDatabase->SqlVariable($this->intFlagUpdateReason) . ',
							' . $objDatabase->SqlVariable($this->strKenKana1) . ',
							' . $objDatabase->SqlVariable($this->strCityKana1) . ',
							' . $objDatabase->SqlVariable($this->strTiikiKana1) . ',
							' . $objDatabase->SqlVariable($this->strKenAlpha) . ',
							' . $objDatabase->SqlVariable($this->strCityAlpha) . ',
							' . $objDatabase->SqlVariable($this->strTiikiAlpha) . ',
							' . $objDatabase->SqlVariable($this->intGeoOrderKen) . ',
							' . $objDatabase->SqlVariable($this->intKanaOrderKen) . ',
							' . $objDatabase->SqlVariable($this->intKanaOrderCity) . ',
							' . $objDatabase->SqlVariable($this->intKanaOrderTiiki) . '
						)
					');

					// Update Identity column and return its value
					$mixToReturn = $this->intId = $objDatabase->InsertId('table_jp_address', 'id');
				} else {
					// Perform an UPDATE query

					// First checking for Optimistic Locking constraints (if applicable)

					// Perform the UPDATE query
					$objDatabase->NonQuery('
						UPDATE
							`table_jp_address`
						SET
							`tihou_code` = ' . $objDatabase->SqlVariable($this->strTihouCode) . ',
							`postal_code` = ' . $objDatabase->SqlVariable($this->strPostalCode) . ',
							`ken_kana` = ' . $objDatabase->SqlVariable($this->strKenKana) . ',
							`city_kana` = ' . $objDatabase->SqlVariable($this->strCityKana) . ',
							`tiiki_kana` = ' . $objDatabase->SqlVariable($this->strTiikiKana) . ',
							`ken` = ' . $objDatabase->SqlVariable($this->strKen) . ',
							`shityouson` = ' . $objDatabase->SqlVariable($this->strShityouson) . ',
							`tiiki` = ' . $objDatabase->SqlVariable($this->strTiiki) . ',
							`flag_multi_code` = ' . $objDatabase->SqlVariable($this->intFlagMultiCode) . ',
							`flag_banti_tiiki` = ' . $objDatabase->SqlVariable($this->intFlagBantiTiiki) . ',
							`flag_tyome` = ' . $objDatabase->SqlVariable($this->intFlagTyome) . ',
							`flag_multi_tiiki` = ' . $objDatabase->SqlVariable($this->intFlagMultiTiiki) . ',
							`flag_update` = ' . $objDatabase->SqlVariable($this->intFlagUpdate) . ',
							`flag_update_reason` = ' . $objDatabase->SqlVariable($this->intFlagUpdateReason) . ',
							`ken_kana1` = ' . $objDatabase->SqlVariable($this->strKenKana1) . ',
							`city_kana1` = ' . $objDatabase->SqlVariable($this->strCityKana1) . ',
							`tiiki_kana1` = ' . $objDatabase->SqlVariable($this->strTiikiKana1) . ',
							`ken_alpha` = ' . $objDatabase->SqlVariable($this->strKenAlpha) . ',
							`city_alpha` = ' . $objDatabase->SqlVariable($this->strCityAlpha) . ',
							`tiiki_alpha` = ' . $objDatabase->SqlVariable($this->strTiikiAlpha) . ',
							`geo_order_ken` = ' . $objDatabase->SqlVariable($this->intGeoOrderKen) . ',
							`kana_order_ken` = ' . $objDatabase->SqlVariable($this->intKanaOrderKen) . ',
							`kana_order_city` = ' . $objDatabase->SqlVariable($this->intKanaOrderCity) . ',
							`kana_order_tiiki` = ' . $objDatabase->SqlVariable($this->intKanaOrderTiiki) . '
						WHERE
							`id` = ' . $objDatabase->SqlVariable($this->intId) . '
					');
				}

			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}

			// Update __blnRestored and any Non-Identity PK Columns (if applicable)
			$this->__blnRestored = true;


			// Return 
			return $mixToReturn;
		}

		/**
		 * Delete this TableJpAddress
		 * @return void
		 */
		public function Delete() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Cannot delete this TableJpAddress with an unset primary key.');

			// Get the Database Object for this Class
			$objDatabase = TableJpAddress::GetDatabase();


			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_jp_address`
				WHERE
					`id` = ' . $objDatabase->SqlVariable($this->intId) . '');
		}

		/**
		 * Delete all TableJpAddresses
		 * @return void
		 */
		public static function DeleteAll() {
			// Get the Database Object for this Class
			$objDatabase = TableJpAddress::GetDatabase();

			// Perform the Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_jp_address`');
		}

		/**
		 * Truncate table_jp_address table
		 * @return void
		 */
		public static function Truncate() {
			// Get the Database Object for this Class
			$objDatabase = TableJpAddress::GetDatabase();

			// Perform the Query
			$objDatabase->NonQuery('
				TRUNCATE `table_jp_address`');
		}

		/**
		 * Reload this TableJpAddress from the database.
		 * @return void
		 */
		public function Reload() {
			// Make sure we are actually Restored from the database
			if (!$this->__blnRestored)
				throw new QCallerException('Cannot call Reload() on a new, unsaved TableJpAddress object.');

			// Reload the Object
			$objReloaded = TableJpAddress::Load($this->intId);

			// Update $this's local variables to match
			$this->strTihouCode = $objReloaded->strTihouCode;
			$this->strPostalCode = $objReloaded->strPostalCode;
			$this->strKenKana = $objReloaded->strKenKana;
			$this->strCityKana = $objReloaded->strCityKana;
			$this->strTiikiKana = $objReloaded->strTiikiKana;
			$this->strKen = $objReloaded->strKen;
			$this->strShityouson = $objReloaded->strShityouson;
			$this->strTiiki = $objReloaded->strTiiki;
			$this->intFlagMultiCode = $objReloaded->intFlagMultiCode;
			$this->intFlagBantiTiiki = $objReloaded->intFlagBantiTiiki;
			$this->intFlagTyome = $objReloaded->intFlagTyome;
			$this->intFlagMultiTiiki = $objReloaded->intFlagMultiTiiki;
			$this->intFlagUpdate = $objReloaded->intFlagUpdate;
			$this->intFlagUpdateReason = $objReloaded->intFlagUpdateReason;
			$this->strKenKana1 = $objReloaded->strKenKana1;
			$this->strCityKana1 = $objReloaded->strCityKana1;
			$this->strTiikiKana1 = $objReloaded->strTiikiKana1;
			$this->strKenAlpha = $objReloaded->strKenAlpha;
			$this->strCityAlpha = $objReloaded->strCityAlpha;
			$this->strTiikiAlpha = $objReloaded->strTiikiAlpha;
			$this->intGeoOrderKen = $objReloaded->intGeoOrderKen;
			$this->intKanaOrderKen = $objReloaded->intKanaOrderKen;
			$this->intKanaOrderCity = $objReloaded->intKanaOrderCity;
			$this->intKanaOrderTiiki = $objReloaded->intKanaOrderTiiki;
		}



		////////////////////
		// PUBLIC OVERRIDERS
		////////////////////

				/**
		 * Override method to perform a property "Get"
		 * This will get the value of $strName
		 *
		 * @param string $strName Name of the property to get
		 * @return mixed
		 */
		public function __get($strName) {
			switch ($strName) {
				///////////////////
				// Member Variables
				///////////////////
				case 'Id':
					/**
					 * Gets the value for intId (Read-Only PK)
					 * @return integer
					 */
					return $this->intId;

				case 'TihouCode':
					/**
					 * Gets the value for strTihouCode (Not Null)
					 * @return string
					 */
					return $this->strTihouCode;

				case 'PostalCode':
					/**
					 * Gets the value for strPostalCode (Not Null)
					 * @return string
					 */
					return $this->strPostalCode;

				case 'KenKana':
					/**
					 * Gets the value for strKenKana 
					 * @return string
					 */
					return $this->strKenKana;

				case 'CityKana':
					/**
					 * Gets the value for strCityKana 
					 * @return string
					 */
					return $this->strCityKana;

				case 'TiikiKana':
					/**
					 * Gets the value for strTiikiKana 
					 * @return string
					 */
					return $this->strTiikiKana;

				case 'Ken':
					/**
					 * Gets the value for strKen (Not Null)
					 * @return string
					 */
					return $this->strKen;

				case 'Shityouson':
					/**
					 * Gets the value for strShityouson (Not Null)
					 * @return string
					 */
					return $this->strShityouson;

				case 'Tiiki':
					/**
					 * Gets the value for strTiiki (Not Null)
					 * @return string
					 */
					return $this->strTiiki;

				case 'FlagMultiCode':
					/**
					 * Gets the value for intFlagMultiCode 
					 * @return integer
					 */
					return $this->intFlagMultiCode;

				case 'FlagBantiTiiki':
					/**
					 * Gets the value for intFlagBantiTiiki 
					 * @return integer
					 */
					return $this->intFlagBantiTiiki;

				case 'FlagTyome':
					/**
					 * Gets the value for intFlagTyome 
					 * @return integer
					 */
					return $this->intFlagTyome;

				case 'FlagMultiTiiki':
					/**
					 * Gets the value for intFlagMultiTiiki 
					 * @return integer
					 */
					return $this->intFlagMultiTiiki;

				case 'FlagUpdate':
					/**
					 * Gets the value for intFlagUpdate 
					 * @return integer
					 */
					return $this->intFlagUpdate;

				case 'FlagUpdateReason':
					/**
					 * Gets the value for intFlagUpdateReason 
					 * @return integer
					 */
					return $this->intFlagUpdateReason;

				case 'KenKana1':
					/**
					 * Gets the value for strKenKana1 
					 * @return string
					 */
					return $this->strKenKana1;

				case 'CityKana1':
					/**
					 * Gets the value for strCityKana1 
					 * @return string
					 */
					return $this->strCityKana1;

				case 'TiikiKana1':
					/**
					 * Gets the value for strTiikiKana1 
					 * @return string
					 */
					return $this->strTiikiKana1;

				case 'KenAlpha':
					/**
					 * Gets the value for strKenAlpha 
					 * @return string
					 */
					return $this->strKenAlpha;

				case 'CityAlpha':
					/**
					 * Gets the value for strCityAlpha 
					 * @return string
					 */
					return $this->strCityAlpha;

				case 'TiikiAlpha':
					/**
					 * Gets the value for strTiikiAlpha 
					 * @return string
					 */
					return $this->strTiikiAlpha;

				case 'GeoOrderKen':
					/**
					 * Gets the value for intGeoOrderKen 
					 * @return integer
					 */
					return $this->intGeoOrderKen;

				case 'KanaOrderKen':
					/**
					 * Gets the value for intKanaOrderKen 
					 * @return integer
					 */
					return $this->intKanaOrderKen;

				case 'KanaOrderCity':
					/**
					 * Gets the value for intKanaOrderCity 
					 * @return integer
					 */
					return $this->intKanaOrderCity;

				case 'KanaOrderTiiki':
					/**
					 * Gets the value for intKanaOrderTiiki 
					 * @return integer
					 */
					return $this->intKanaOrderTiiki;


				///////////////////
				// Member Objects
				///////////////////

				////////////////////////////
				// Virtual Object References (Many to Many and Reverse References)
				// (If restored via a "Many-to" expansion)
				////////////////////////////


				case '__Restored':
					return $this->__blnRestored;

				default:
					try {
						return parent::__get($strName);
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
			}
		}

				/**
		 * Override method to perform a property "Set"
		 * This will set the property $strName to be $mixValue
		 *
		 * @param string $strName Name of the property to set
		 * @param string $mixValue New value of the property
		 * @return mixed
		 */
		public function __set($strName, $mixValue) {
			switch ($strName) {
				///////////////////
				// Member Variables
				///////////////////
				case 'TihouCode':
					/**
					 * Sets the value for strTihouCode (Not Null)
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strTihouCode = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'PostalCode':
					/**
					 * Sets the value for strPostalCode (Not Null)
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strPostalCode = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'KenKana':
					/**
					 * Sets the value for strKenKana 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strKenKana = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'CityKana':
					/**
					 * Sets the value for strCityKana 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strCityKana = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'TiikiKana':
					/**
					 * Sets the value for strTiikiKana 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strTiikiKana = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'Ken':
					/**
					 * Sets the value for strKen (Not Null)
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strKen = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'Shityouson':
					/**
					 * Sets the value for strShityouson (Not Null)
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strShityouson = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'Tiiki':
					/**
					 * Sets the value for strTiiki (Not Null)
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strTiiki = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'FlagMultiCode':
					/**
					 * Sets the value for intFlagMultiCode 
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intFlagMultiCode = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'FlagBantiTiiki':
					/**
					 * Sets the value for intFlagBantiTiiki 
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intFlagBantiTiiki = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'FlagTyome':
					/**
					 * Sets the value for intFlagTyome 
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intFlagTyome = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'FlagMultiTiiki':
					/**
					 * Sets the value for intFlagMultiTiiki 
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intFlagMultiTiiki = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'FlagUpdate':
					/**
					 * Sets the value for intFlagUpdate 
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intFlagUpdate = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'FlagUpdateReason':
					/**
					 * Sets the value for intFlagUpdateReason 
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intFlagUpdateReason = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'KenKana1':
					/**
					 * Sets the value for strKenKana1 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strKenKana1 = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'CityKana1':
					/**
					 * Sets the value for strCityKana1 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strCityKana1 = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'TiikiKana1':
					/**
					 * Sets the value for strTiikiKana1 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strTiikiKana1 = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'KenAlpha':
					/**
					 * Sets the value for strKenAlpha 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strKenAlpha = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'CityAlpha':
					/**
					 * Sets the value for strCityAlpha 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strCityAlpha = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'TiikiAlpha':
					/**
					 * Sets the value for strTiikiAlpha 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strTiikiAlpha = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'GeoOrderKen':
					/**
					 * Sets the value for intGeoOrderKen 
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intGeoOrderKen = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'KanaOrderKen':
					/**
					 * Sets the value for intKanaOrderKen 
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intKanaOrderKen = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'KanaOrderCity':
					/**
					 * Sets the value for intKanaOrderCity 
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intKanaOrderCity = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'KanaOrderTiiki':
					/**
					 * Sets the value for intKanaOrderTiiki 
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intKanaOrderTiiki = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}


				///////////////////
				// Member Objects
				///////////////////
				default:
					try {
						return parent::__set($strName, $mixValue);
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
			}
		}

		/**
		 * Lookup a VirtualAttribute value (if applicable).  Returns NULL if none found.
		 * @param string $strName
		 * @return string
		 */
		public function GetVirtualAttribute($strName) {
			if (array_key_exists($strName, $this->__strVirtualAttributeArray))
				return $this->__strVirtualAttributeArray[$strName];
			return null;
		}



		///////////////////////////////
		// ASSOCIATED OBJECTS' METHODS
		///////////////////////////////





		////////////////////////////////////////
		// METHODS for SOAP-BASED WEB SERVICES
		////////////////////////////////////////

		public static function GetSoapComplexTypeXml() {
			$strToReturn = '<complexType name="TableJpAddress"><sequence>';
			$strToReturn .= '<element name="Id" type="xsd:int"/>';
			$strToReturn .= '<element name="TihouCode" type="xsd:string"/>';
			$strToReturn .= '<element name="PostalCode" type="xsd:string"/>';
			$strToReturn .= '<element name="KenKana" type="xsd:string"/>';
			$strToReturn .= '<element name="CityKana" type="xsd:string"/>';
			$strToReturn .= '<element name="TiikiKana" type="xsd:string"/>';
			$strToReturn .= '<element name="Ken" type="xsd:string"/>';
			$strToReturn .= '<element name="Shityouson" type="xsd:string"/>';
			$strToReturn .= '<element name="Tiiki" type="xsd:string"/>';
			$strToReturn .= '<element name="FlagMultiCode" type="xsd:int"/>';
			$strToReturn .= '<element name="FlagBantiTiiki" type="xsd:int"/>';
			$strToReturn .= '<element name="FlagTyome" type="xsd:int"/>';
			$strToReturn .= '<element name="FlagMultiTiiki" type="xsd:int"/>';
			$strToReturn .= '<element name="FlagUpdate" type="xsd:int"/>';
			$strToReturn .= '<element name="FlagUpdateReason" type="xsd:int"/>';
			$strToReturn .= '<element name="KenKana1" type="xsd:string"/>';
			$strToReturn .= '<element name="CityKana1" type="xsd:string"/>';
			$strToReturn .= '<element name="TiikiKana1" type="xsd:string"/>';
			$strToReturn .= '<element name="KenAlpha" type="xsd:string"/>';
			$strToReturn .= '<element name="CityAlpha" type="xsd:string"/>';
			$strToReturn .= '<element name="TiikiAlpha" type="xsd:string"/>';
			$strToReturn .= '<element name="GeoOrderKen" type="xsd:int"/>';
			$strToReturn .= '<element name="KanaOrderKen" type="xsd:int"/>';
			$strToReturn .= '<element name="KanaOrderCity" type="xsd:int"/>';
			$strToReturn .= '<element name="KanaOrderTiiki" type="xsd:int"/>';
			$strToReturn .= '<element name="__blnRestored" type="xsd:boolean"/>';
			$strToReturn .= '</sequence></complexType>';
			return $strToReturn;
		}

		public static function AlterSoapComplexTypeArray(&$strComplexTypeArray) {
			if (!array_key_exists('TableJpAddress', $strComplexTypeArray)) {
				$strComplexTypeArray['TableJpAddress'] = TableJpAddress::GetSoapComplexTypeXml();
			}
		}

		public static function GetArrayFromSoapArray($objSoapArray) {
			$objArrayToReturn = array();

			foreach ($objSoapArray as $objSoapObject)
				array_push($objArrayToReturn, TableJpAddress::GetObjectFromSoapObject($objSoapObject));

			return $objArrayToReturn;
		}

		public static function GetObjectFromSoapObject($objSoapObject) {
			$objToReturn = new TableJpAddress();
			if (property_exists($objSoapObject, 'Id'))
				$objToReturn->intId = $objSoapObject->Id;
			if (property_exists($objSoapObject, 'TihouCode'))
				$objToReturn->strTihouCode = $objSoapObject->TihouCode;
			if (property_exists($objSoapObject, 'PostalCode'))
				$objToReturn->strPostalCode = $objSoapObject->PostalCode;
			if (property_exists($objSoapObject, 'KenKana'))
				$objToReturn->strKenKana = $objSoapObject->KenKana;
			if (property_exists($objSoapObject, 'CityKana'))
				$objToReturn->strCityKana = $objSoapObject->CityKana;
			if (property_exists($objSoapObject, 'TiikiKana'))
				$objToReturn->strTiikiKana = $objSoapObject->TiikiKana;
			if (property_exists($objSoapObject, 'Ken'))
				$objToReturn->strKen = $objSoapObject->Ken;
			if (property_exists($objSoapObject, 'Shityouson'))
				$objToReturn->strShityouson = $objSoapObject->Shityouson;
			if (property_exists($objSoapObject, 'Tiiki'))
				$objToReturn->strTiiki = $objSoapObject->Tiiki;
			if (property_exists($objSoapObject, 'FlagMultiCode'))
				$objToReturn->intFlagMultiCode = $objSoapObject->FlagMultiCode;
			if (property_exists($objSoapObject, 'FlagBantiTiiki'))
				$objToReturn->intFlagBantiTiiki = $objSoapObject->FlagBantiTiiki;
			if (property_exists($objSoapObject, 'FlagTyome'))
				$objToReturn->intFlagTyome = $objSoapObject->FlagTyome;
			if (property_exists($objSoapObject, 'FlagMultiTiiki'))
				$objToReturn->intFlagMultiTiiki = $objSoapObject->FlagMultiTiiki;
			if (property_exists($objSoapObject, 'FlagUpdate'))
				$objToReturn->intFlagUpdate = $objSoapObject->FlagUpdate;
			if (property_exists($objSoapObject, 'FlagUpdateReason'))
				$objToReturn->intFlagUpdateReason = $objSoapObject->FlagUpdateReason;
			if (property_exists($objSoapObject, 'KenKana1'))
				$objToReturn->strKenKana1 = $objSoapObject->KenKana1;
			if (property_exists($objSoapObject, 'CityKana1'))
				$objToReturn->strCityKana1 = $objSoapObject->CityKana1;
			if (property_exists($objSoapObject, 'TiikiKana1'))
				$objToReturn->strTiikiKana1 = $objSoapObject->TiikiKana1;
			if (property_exists($objSoapObject, 'KenAlpha'))
				$objToReturn->strKenAlpha = $objSoapObject->KenAlpha;
			if (property_exists($objSoapObject, 'CityAlpha'))
				$objToReturn->strCityAlpha = $objSoapObject->CityAlpha;
			if (property_exists($objSoapObject, 'TiikiAlpha'))
				$objToReturn->strTiikiAlpha = $objSoapObject->TiikiAlpha;
			if (property_exists($objSoapObject, 'GeoOrderKen'))
				$objToReturn->intGeoOrderKen = $objSoapObject->GeoOrderKen;
			if (property_exists($objSoapObject, 'KanaOrderKen'))
				$objToReturn->intKanaOrderKen = $objSoapObject->KanaOrderKen;
			if (property_exists($objSoapObject, 'KanaOrderCity'))
				$objToReturn->intKanaOrderCity = $objSoapObject->KanaOrderCity;
			if (property_exists($objSoapObject, 'KanaOrderTiiki'))
				$objToReturn->intKanaOrderTiiki = $objSoapObject->KanaOrderTiiki;
			if (property_exists($objSoapObject, '__blnRestored'))
				$objToReturn->__blnRestored = $objSoapObject->__blnRestored;
			return $objToReturn;
		}

		public static function GetSoapArrayFromArray($objArray) {
			if (!$objArray)
				return null;

			$objArrayToReturn = array();

			foreach ($objArray as $objObject)
				array_push($objArrayToReturn, TableJpAddress::GetSoapObjectFromObject($objObject, true));

			return unserialize(serialize($objArrayToReturn));
		}

		public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects) {
			return $objObject;
		}




	}



	/////////////////////////////////////
	// ADDITIONAL CLASSES for QCubed QUERY
	/////////////////////////////////////

	class QQNodeTableJpAddress extends QQNode {
		protected $strTableName = 'table_jp_address';
		protected $strPrimaryKey = 'id';
		protected $strClassName = 'TableJpAddress';
		public function __get($strName) {
			switch ($strName) {
				case 'Id':
					return new QQNode('id', 'Id', 'integer', $this);
				case 'TihouCode':
					return new QQNode('tihou_code', 'TihouCode', 'string', $this);
				case 'PostalCode':
					return new QQNode('postal_code', 'PostalCode', 'string', $this);
				case 'KenKana':
					return new QQNode('ken_kana', 'KenKana', 'string', $this);
				case 'CityKana':
					return new QQNode('city_kana', 'CityKana', 'string', $this);
				case 'TiikiKana':
					return new QQNode('tiiki_kana', 'TiikiKana', 'string', $this);
				case 'Ken':
					return new QQNode('ken', 'Ken', 'string', $this);
				case 'Shityouson':
					return new QQNode('shityouson', 'Shityouson', 'string', $this);
				case 'Tiiki':
					return new QQNode('tiiki', 'Tiiki', 'string', $this);
				case 'FlagMultiCode':
					return new QQNode('flag_multi_code', 'FlagMultiCode', 'integer', $this);
				case 'FlagBantiTiiki':
					return new QQNode('flag_banti_tiiki', 'FlagBantiTiiki', 'integer', $this);
				case 'FlagTyome':
					return new QQNode('flag_tyome', 'FlagTyome', 'integer', $this);
				case 'FlagMultiTiiki':
					return new QQNode('flag_multi_tiiki', 'FlagMultiTiiki', 'integer', $this);
				case 'FlagUpdate':
					return new QQNode('flag_update', 'FlagUpdate', 'integer', $this);
				case 'FlagUpdateReason':
					return new QQNode('flag_update_reason', 'FlagUpdateReason', 'integer', $this);
				case 'KenKana1':
					return new QQNode('ken_kana1', 'KenKana1', 'string', $this);
				case 'CityKana1':
					return new QQNode('city_kana1', 'CityKana1', 'string', $this);
				case 'TiikiKana1':
					return new QQNode('tiiki_kana1', 'TiikiKana1', 'string', $this);
				case 'KenAlpha':
					return new QQNode('ken_alpha', 'KenAlpha', 'string', $this);
				case 'CityAlpha':
					return new QQNode('city_alpha', 'CityAlpha', 'string', $this);
				case 'TiikiAlpha':
					return new QQNode('tiiki_alpha', 'TiikiAlpha', 'string', $this);
				case 'GeoOrderKen':
					return new QQNode('geo_order_ken', 'GeoOrderKen', 'integer', $this);
				case 'KanaOrderKen':
					return new QQNode('kana_order_ken', 'KanaOrderKen', 'integer', $this);
				case 'KanaOrderCity':
					return new QQNode('kana_order_city', 'KanaOrderCity', 'integer', $this);
				case 'KanaOrderTiiki':
					return new QQNode('kana_order_tiiki', 'KanaOrderTiiki', 'integer', $this);

				case '_PrimaryKeyNode':
					return new QQNode('id', 'Id', 'integer', $this);
				default:
					try {
						return parent::__get($strName);
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
			}
		}
	}

	class QQReverseReferenceNodeTableJpAddress extends QQReverseReferenceNode {
		protected $strTableName = 'table_jp_address';
		protected $strPrimaryKey = 'id';
		protected $strClassName = 'TableJpAddress';
		public function __get($strName) {
			switch ($strName) {
				case 'Id':
					return new QQNode('id', 'Id', 'integer', $this);
				case 'TihouCode':
					return new QQNode('tihou_code', 'TihouCode', 'string', $this);
				case 'PostalCode':
					return new QQNode('postal_code', 'PostalCode', 'string', $this);
				case 'KenKana':
					return new QQNode('ken_kana', 'KenKana', 'string', $this);
				case 'CityKana':
					return new QQNode('city_kana', 'CityKana', 'string', $this);
				case 'TiikiKana':
					return new QQNode('tiiki_kana', 'TiikiKana', 'string', $this);
				case 'Ken':
					return new QQNode('ken', 'Ken', 'string', $this);
				case 'Shityouson':
					return new QQNode('shityouson', 'Shityouson', 'string', $this);
				case 'Tiiki':
					return new QQNode('tiiki', 'Tiiki', 'string', $this);
				case 'FlagMultiCode':
					return new QQNode('flag_multi_code', 'FlagMultiCode', 'integer', $this);
				case 'FlagBantiTiiki':
					return new QQNode('flag_banti_tiiki', 'FlagBantiTiiki', 'integer', $this);
				case 'FlagTyome':
					return new QQNode('flag_tyome', 'FlagTyome', 'integer', $this);
				case 'FlagMultiTiiki':
					return new QQNode('flag_multi_tiiki', 'FlagMultiTiiki', 'integer', $this);
				case 'FlagUpdate':
					return new QQNode('flag_update', 'FlagUpdate', 'integer', $this);
				case 'FlagUpdateReason':
					return new QQNode('flag_update_reason', 'FlagUpdateReason', 'integer', $this);
				case 'KenKana1':
					return new QQNode('ken_kana1', 'KenKana1', 'string', $this);
				case 'CityKana1':
					return new QQNode('city_kana1', 'CityKana1', 'string', $this);
				case 'TiikiKana1':
					return new QQNode('tiiki_kana1', 'TiikiKana1', 'string', $this);
				case 'KenAlpha':
					return new QQNode('ken_alpha', 'KenAlpha', 'string', $this);
				case 'CityAlpha':
					return new QQNode('city_alpha', 'CityAlpha', 'string', $this);
				case 'TiikiAlpha':
					return new QQNode('tiiki_alpha', 'TiikiAlpha', 'string', $this);
				case 'GeoOrderKen':
					return new QQNode('geo_order_ken', 'GeoOrderKen', 'integer', $this);
				case 'KanaOrderKen':
					return new QQNode('kana_order_ken', 'KanaOrderKen', 'integer', $this);
				case 'KanaOrderCity':
					return new QQNode('kana_order_city', 'KanaOrderCity', 'integer', $this);
				case 'KanaOrderTiiki':
					return new QQNode('kana_order_tiiki', 'KanaOrderTiiki', 'integer', $this);

				case '_PrimaryKeyNode':
					return new QQNode('id', 'Id', 'integer', $this);
				default:
					try {
						return parent::__get($strName);
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
			}
		}
	}

?>